class Cache:
  def __init__(self):
    self.cache = {}
  def get(self, key):
    return self.cache[key]
  def set(self, key, value):
    self.cache[key] = value
    return value
  def has(self, key):
    return key in self.cache.keys()
cache = Cache()
